import request from '@/utils/request'

// 获取线索等级列表
export const gradeList = (params: any) => {
  return request({
    url: '/scrm-api/console/clue/level/list',
    params
  })
}
// 新建线索等级
export const gradeCreate = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/level/create',
    method: 'POST',
    data
  })
}
// 编辑线索等级
export const gradeEdit = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/level/edit',
    method: 'POST',
    data
  })
}
// 删除线索等级
export const gradeDel = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/level/del',
    method: 'POST',
    data
  })
}
// 线索等级排序
export const gradeSort = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/level/sort',
    method: 'POST',
    data
  })
}
// 编辑线索等级状态
export const gradeUpdateStatus = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/level/update/status',
    method: 'POST',
    data
  })
}
